import request from '@/utils/request'

// 获取短信验证码
export const getPhoneCode = (phone) => {
  return request({
    url: '/adminUser/getPhoneCode',
    params: {
      phone
    },
    method: 'post'
  })
}

// 角色列表
export function adminUserPojoList(pageNo, phone, nickname) {
  return request({
    url: '/adminUser/adminUserPojoList', params: {pageNo, phone, nickname}, method: 'get',
  })
}

// 角色删除
export function adminUserPojoDelete(auId) {
  return request({
    url: '/adminUser/adminUserPojoDelete', params: {auId}, method: 'get',
  })
}

// 角色修改/新增
export function adminUserPojoOperation(jsonString) {
  return request({
    url: '/adminUser/adminUserPojoOperation', data: jsonString, headers: {
      'Content-Type': 'application/json'
    }, method: 'post',
  })
}
